package com.spring.componentAnnotation;

import javax.annotation.PostConstruct;

import org.springframework.stereotype.Service;

@Service("office")
public class Office {
	private int officeNo;
	
	@PostConstruct  
	public void init(){
		this.officeNo=222;
	}
	public int getOfficeNo(){
		return this.officeNo;
	}
	public void setOfficeNo(int officeNo){
		this.officeNo = officeNo;
	}
	@Override
	public String toString(){
		return "officeNo=" + officeNo;
	}
}
